package cn.saddyfire.pattern.command.jdk;

/**
 * @author Dee
 * @date 2024/2/21
 * <p>Description:
 */
public class TurnOffThread implements Runnable{
    //集成接收者
    private Receiver receiver;

    public TurnOffThread(Receiver receiver) {
        this.receiver = receiver;
    }

    @Override
    public void run() {
        receiver.turnOFF();
    }
}
